package com.zhl.define;

public class ArrayDemo3 {
    public static void main(String[] args) {
        //掌握数组的遍历
        int[] age = {18, 20, 22, 25, 28};

        //遍历数组
        //方式1：for循环 通过索引进行遍历
        for (int i = 0; i < age.length; i++) {
            System.out.println(age[i]);
            }



    }
}
